﻿@model MyPSDALayer.Payment  

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>支付方式</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.PaymentName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PaymentName)<font color="red">*</font>
            @Html.ValidationMessageFor(model => model.PaymentName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AccoutNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AccoutNo)<font color="red">*</font>
            @Html.ValidationMessageFor(model => model.AccoutNo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)<font color="red">*</font>
            @Html.ValidationMessageFor(model => model.Name)
        </div>
          <div class="editor-label">
            @Html.LabelFor(model => model.PaymentType)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.PaymentType, ViewBag.TypeList as SelectList)<font color="red">*</font>
            @Html.ValidationMessageFor(model => model.PaymentType)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.OBank)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.OBank)
            @Html.ValidationMessageFor(model => model.OBank)
        </div>      

        <div class="editor-label">
            @Html.LabelFor(model => model.PayUrl)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PayUrl)
            @Html.ValidationMessageFor(model => model.PayUrl)
        </div>

       

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
